package dormouse.vfs.ui.actions;

import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;

import javax.swing.Icon;

import org.jdesktop.swingx.action.AbstractActionExt;

/**
 * This action is responsible for syncing a file from one directory to another.
 */
public class SyncFileAction extends AbstractActionExt {

	/** Serial UID.*/
	private static final long serialVersionUID = 331109302982378680L;

	/**
	 * Constructor
	 * @param action  
	 */
	public SyncFileAction(AbstractActionExt action) {
		super(action);
		//TODO: fixme.  Shouldn't need the action in the constructor.
	}

	/**
	 * Constructor.
	 */
	public SyncFileAction() {
		super("Sync");
	}

	/**
	 * Constructor.
	 * @param name The name of the action.
	 * @param icon The icon to be displayed.
	 */
	public SyncFileAction(String name, Icon icon) {
		super(name, icon);
	}

	/**
	 * Constructor.
	 * @param name  The name of the action.
	 * @param command  The command key for the action.
	 */
	public SyncFileAction(String name, String command) {
		super(name, command);
	}

	/**
	 * Constructor.
	 * @param name	The name of the action.
	 * @param command The command key for the action.
	 * @param icon The icon for the file.
	 */
	public SyncFileAction(String name, String command, Icon icon) {
		super(name, command, icon);
	}

	@Override
	public void itemStateChanged(ItemEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub

	}

}
